def huiwen(num):
    num_str = str(num)

    for i in range(len(num_str) // 2):
        # Compare the characters
        if num_str[i] != num_str[-(i + 1)]:
            return "不是回文数"
    return "是回文数"
